package com.landscope.central.controller.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author qzp
 * @version v1.0
 * @date 2021/7/6 10:09
 **/
@Data
public class AuthorizeDto {

    @ApiModelProperty(value = "登录凭证", example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRoIjoie1wicHJvamVjdExpc3RcIjpcInN1YnMwMDEtcGJnLHN1YnMwMDEtaGNwXCIsXCJ1c2VyXCI6e1wiaWRcIjoxfX0iLCJleHAiOjE2MjU1NjY0NTksImlhdCI6MTYyNTUzNzY1OX0.RBlv-_pfesGWhOh9L-wql1mQ81m7MOraPJQ1Fa_p_CU")
    private String accessToken;
    @ApiModelProperty(value = "项目列表列表", dataType = "List")
    private List<ApiProjectDto> projectList;

    public AuthorizeDto(String accessToken, List<ApiProjectDto> projectList) {
        this.accessToken = accessToken;
        this.projectList = projectList;
    }
}
